<?php
require_once("./includes/class.Calc.inc.php");
class CalcFromFile extends Calc {
	protected function MakeProductQuery() {
		$lines = file($this->id);
		$query= 'SELECT id, comment1, comment2, comment3, height, weight FROM product ';
		$query.='WHERE id IN (';
		$f = 0;
		foreach($lines as $line) {
			$fields = explode(';', $line);		
			foreach($fields as $field)
			{
				if($f != 0) $query .= ", ";
				$query.= $field;
				$f++;
			}
		}
		$query.=')';
		return $query;
	}
}
?>